<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>js/Api_backup/getnote.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title=""></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/Copier.html">Copier</a></li>
            
                <li><a href="../classes/delmem.html">delmem</a></li>
            
                <li><a href="../classes/delnote.html">delnote</a></li>
            
                <li><a href="../classes/delrelnote.html">delrelnote</a></li>
            
                <li><a href="../classes/delreluser.html">delreluser</a></li>
            
                <li><a href="../classes/deluser.html">deluser</a></li>
            
                <li><a href="../classes/err.html">err</a></li>
            
                <li><a href="../classes/getmems.html">getmems</a></li>
            
                <li><a href="../classes/getnote.html">getnote</a></li>
            
                <li><a href="../classes/getnotes.html">getnotes</a></li>
            
                <li><a href="../classes/getusers.html">getusers</a></li>
            
                <li><a href="../classes/newmem.html">newmem</a></li>
            
                <li><a href="../classes/newnote.html">newnote</a></li>
            
                <li><a href="../classes/newuser.html">newuser</a></li>
            
                <li><a href="../classes/putmemnote.html">putmemnote</a></li>
            
                <li><a href="../classes/putrelnote.html">putrelnote</a></li>
            
                <li><a href="../classes/putreluser.html">putreluser</a></li>
            
                <li><a href="../classes/Tools.Copier.html">Tools.Copier</a></li>
            
                <li><a href="../classes/Tools.inject.html">Tools.inject</a></li>
            
                <li><a href="../classes/Tools.isArray.html">Tools.isArray</a></li>
            
                <li><a href="../classes/Tools.lpad.html">Tools.lpad</a></li>
            
                <li><a href="../classes/Tools.map.html">Tools.map</a></li>
            
                <li><a href="../classes/ToolsService.html">ToolsService</a></li>
            
                <li><a href="../classes/updatenote.html">updatenote</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/Tools.html">Tools</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1 class="file-heading">File: js/Api_backup/getnote.js</h1>

<div class="file">
    <pre class="code prettyprint linenums">
/**
* Pobiera notatkę lub jej część.
* @class getnote
*/
function getnote(){
	/**
	* getnote
	* @property oper
	* @private 
	*/
	var oper,

	/**
	*  właściciel (można pominąć)
	* @property user 
	* @private 
	*/
	user ,

	/**
	*  hasło tego użytkownika (o ile jest user).
	* @property pass 
	* @private 
	*/
	pass ,

	/**
	*  identyfikator notatki do pobrania
	* @property nid 
	* @private 
	*/
	nid ,

	/**
	*  co pobrać: dowolny wybór liter: t,s,f w dowolnej kolejności. t-pobierz temat, s-pobierz skrót, f-pobierz pełny tekst. pobranie pełnego tekstu jest skuteczne, gdy podano usera będącego na liście relusers notatki lub na tej liście jest „*” Zwraca (niektóre elementy mogą być pominięte, w zależności od what oraz ew. pominięcia pełnego tekstu przy błędnym użytkowniku): JSON:	{&quot;rez&quot;:&quot;ok&quot;,&quot;topic&quot;:&quot;topic&quot;,&quot;summary&quot;:&quot;summary&quot;,&quot;text&quot;:&quot;text &quot;}	JavaScript:	var note$rez={&quot;rez&quot;:&quot;ok&quot;,&quot;topic&quot;:&quot; topic&quot;,&quot;summary&quot;:&quot;summary &quot;,&quot;	text&quot;:&quot;text&quot;}txt:	ok;topic;summary;text	, w zależności od kolejności w what	HTML:	&lt;div rez=&quot;ok&quot;&gt;&lt;h1&gt;topic&lt;/h1&gt;&lt;h6&gt;summary&lt;/h6&gt;&lt;p&gt;text&lt;/p&gt;&lt;/div&gt;	
	* @property what 
	* @private 
	*/
	what ,

	/**
	*  co pobrać: dowolny wybór liter: t,s,f w dowolnej kolejności. t-pobierz temat, s-pobierz skrót, f-pobierz pełny tekst. pobranie pełnego tekstu jest skuteczne, gdy podano usera będącego na liście relusers notatki lub na tej liście jest „*” Zwraca (niektóre elementy mogą być pominięte, w zależności od what oraz ew. pominięcia pełnego tekstu przy błędnym użytkowniku): JSON:	{&quot;rez&quot;:&quot;ok&quot;,&quot;topic&quot;:&quot;topic&quot;,&quot;summary&quot;:&quot;summary&quot;,&quot;text&quot;:&quot;text &quot;}	JavaScript:	var note$rez={&quot;rez&quot;:&quot;ok&quot;,&quot;topic&quot;:&quot; topic&quot;,&quot;summary&quot;:&quot;summary &quot;,&quot;	text&quot;:&quot;text&quot;}txt:	ok;topic;summary;text	, w zależności od kolejności w what	HTML:	&lt;div rez=&quot;ok&quot;&gt;&lt;h1&gt;topic&lt;/h1&gt;&lt;h6&gt;summary&lt;/h6&gt;&lt;p&gt;text&lt;/p&gt;&lt;/div&gt;	
	* @property what 
	* @private 
	*/
	what ,
	that = this;


	function getOper(noper){
		return oper;
	}
	function getUser(nuser){
		return user ;
	}
	function getPass(npass){
		return pass ;
	}
	function getNid(nnid){
		return nid ;
	}
	function getWhat(nwhat){
		return what ;
	}

	function setOper(noper){
		oper = noper;
	}
	function setUser(nuser){
		user  = nuser ;
	}
	function setPass(npass){
		pass  = npass ;
	}
	function setNid(nnid){
		nid  = nnid ;
	}
	function setWhat(nwhat){
		what  = nwhat ;
	}

	function toObject(){
		return{
			oper: oper,
			user : user ,
			pass : pass ,
			nid : nid ,
			what : what 
		};
	}

	/**
 	* konstruktor
 	*
   	* @constructor         
  	* @method construct    
  	* @public              
 	*/
	(function getnote(){
		that.getOper = getOper;
		that.getUser = getUser;
		that.getPass = getPass;
		that.getNid = getNid;
		that.getWhat = getWhat;
		that.setOper = setOper;
		that.setUser = setUser;
		that.setPass = setPass;
		that.setNid = setNid;
		that.setWhat = setWhat;

	})();
}


getnote.prototype.fromObject = function (obj){
		var object = new getnote();
		object.setOper(obj.getOper());
		object.setUser(obj.getUser());
		object.setPass(obj.getPass());
		object.setNid(obj.getNid());
		object.setWhat(obj.getWhat());

		return object;
	}

    </pre>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
